package com.cyzy.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cyzy.mapper.MenuManageMapper;
import com.cyzy.pojo.UserMenu;
import com.cyzy.service.MenuManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuManageServiceImpl implements MenuManageService {

    @Autowired
    private MenuManageMapper menuManageMapper;

    @Override
    public Page<UserMenu> selectMenu(UserMenu userMenu, int pageSize, int pageNum){
        Page<UserMenu> page = new Page<>(pageNum, pageSize);
        return menuManageMapper.selectMenu(page);
    }

    @Override
    public List<UserMenu> selectAllMenu(UserMenu userMenu){
        return menuManageMapper.selectAllMenu(userMenu);
    }


}
